file(GLOB HEADERS include/*.h)

add_executable(check_for_other_test
	${HEADERS}
	check_for_other_test.cpp unit_tests.cpp
)

add_library(libWrappers
	wrappers.cpp
)

target_link_libraries(check_for_other_test
	PRIVATE
		libWrappers
		-Wl,--wrap,getpid,--wrap,scandir,--wrap,fopen,--wrap,fread,--wrap,fclose
		Szarp2
		${CPPUNIT_LIBRARIES}
)

add_test(NAME check_for_other_test.test COMMAND check_for_other_test)
